package com.ruoyi.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.education.mapper.StudentTrackMapper;
import com.ruoyi.education.domain.StudentTrack;
import com.ruoyi.education.service.IStudentTrackService;

/**
 * 教学跟踪Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
@Service
public class StudentTrackServiceImpl implements IStudentTrackService 
{
    @Autowired
    private StudentTrackMapper studentTrackMapper;

    /**
     * 查询教学跟踪
     * 
     * @param id 教学跟踪主键
     * @return 教学跟踪
     */
    @Override
    public StudentTrack selectStudentTrackById(Long id)
    {
        return studentTrackMapper.selectStudentTrackById(id);
    }

    /**
     * 查询教学跟踪列表
     * 
     * @param studentTrack 教学跟踪
     * @return 教学跟踪
     */
    @Override
    public List<StudentTrack> selectStudentTrackList(StudentTrack studentTrack)
    {
        return studentTrackMapper.selectStudentTrackList(studentTrack);
    }

    /**
     * 新增教学跟踪
     * 
     * @param studentTrack 教学跟踪
     * @return 结果
     */
    @Override
    public int insertStudentTrack(StudentTrack studentTrack)
    {
        return studentTrackMapper.insertStudentTrack(studentTrack);
    }

    /**
     * 修改教学跟踪
     * 
     * @param studentTrack 教学跟踪
     * @return 结果
     */
    @Override
    public int updateStudentTrack(StudentTrack studentTrack)
    {
        return studentTrackMapper.updateStudentTrack(studentTrack);
    }

    /**
     * 批量删除教学跟踪
     * 
     * @param ids 需要删除的教学跟踪主键
     * @return 结果
     */
    @Override
    public int deleteStudentTrackByIds(Long[] ids)
    {
        return studentTrackMapper.deleteStudentTrackByIds(ids);
    }

    /**
     * 删除教学跟踪信息
     * 
     * @param id 教学跟踪主键
     * @return 结果
     */
    @Override
    public int deleteStudentTrackById(Long id)
    {
        return studentTrackMapper.deleteStudentTrackById(id);
    }
}
